#include "Excel/Excel.h"
#include <iostream>
int main()
{
    //1.读取数据
    Excel::Excel excel;
    excel.read("/home/mathsword/code/excel/test.xlsx");

    //2. 对每个表按行打印数据
    for (auto &sheet : excel.getAllSheet())
    {
        std::cout << "sheet:" << sheet->name << "\n";
        for (auto &it : sheet->mapValue)
        {
            std::cout << "row = " << it.first << " : [";
            for (auto &it2 : it.second)
            {
                auto &cell = it2.second;
                std::cout << cell->key << "(" << cell->row << "," << cell->col << "):" << cell->value << " | ";
            }

            std::cout << "]\n";
        }

        std::cout << "--------------------------------------\n";
    }
    
    return 0;
}